<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->library('tank_auth');
		$this->load->model('SysTableColumns');
	}

	function index()
	{
		if (!$this->tank_auth->is_logged_in()) {
			redirect('/auth/login/');
		} else {
			$this->SysTableColumns->GetTables();
			$Data['Tables'] = $this->SysTableColumns->Tables;
			$Data['PageTitle'] = 'Главная страница';
			$Data['MainContent'] = 'MainForm';
			$this->load->view('TemplateView', $Data);
		}
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */